import 'dart:convert';

import 'package:flutter/services.dart';
import 'package:get/get.dart';

import '../../../net/apis.dart';
import '../../../net/http_manager.dart';

class NewMoreViewModel extends GetxController {
  final recentList = [].obs;

  @override
  void onInit() {
    super.onInit();

    _loadRecentList();
  }

  void _loadRecentList() async {
    String jsonData = await rootBundle.loadString('assets/json/recent.json');
    List allList = json.decode(jsonData);
    recentList.assignAll(allList);
  }
}
